﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserManager.aspx.cs" Inherits="BackGround_DeleteInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <link href="../Css/StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div align="right">输入：<asp:TextBox ID="umsg" runat="server" Width="120" Height="14"></asp:TextBox>&nbsp;&nbsp; 
    <asp:DropDownList
        ID="dlSearchType" runat="server" Height="20">
            <asp:ListItem Text="请选择查找方式" Value="0"></asp:ListItem>
        <asp:ListItem Text="按ID查找" Value="1"></asp:ListItem>
        <asp:ListItem Text="按姓名查找" Value="2"></asp:ListItem>
        <asp:ListItem Text="按邮箱查找" Value="3"></asp:ListItem>
    </asp:DropDownList>
        &nbsp;
        &nbsp;<asp:Button ID="BtSearch" runat="server" Text="搜索" Height="20" 
            onclick="BtSearch_Click" />
&nbsp;<asp:Label ID="lblPageSum" runat="server" Text="当前页为　1 / 10　页"></asp:Label>
        <asp:RadioButton ID="rdoBtnCheckTrue" runat="server" AutoPostBack="True" GroupName="checkState"
                        OnCheckedChanged="rdoBtnCheckTrue_CheckedChanged" Text="已经激活的用户" 
                        style="text-align: left" />
                    <asp:RadioButton ID="rdoBtnCheckFalse" runat="server" AutoPostBack="True" GroupName="checkState"
                        OnCheckedChanged="rdoBtnCheckFalse_CheckedChanged" Text="未激活的用户" 
                        style="text-align: left" />
                    <asp:RadioButton ID="rdoBtnCheckAll" runat="server" AutoPostBack="True" Checked="True"
                        GroupName="checkState" OnCheckedChanged="rdoBtnCheckAll_CheckedChanged" 
                        Text="显示所有用户" style="text-align: left" />
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            CellPadding="3" ForeColor="#333333" GridLines="None" Height="1px" OnPageIndexChanging="GridView1_PageIndexChanging"
            OnRowDataBound="GridView1_RowDataBound" OnRowDeleting="GridView1_RowDeleting" AllowSorting="true" OnSorting="sorted"
             Width="800px" PageSize="24">
            <PagerSettings FirstPageText="第一页" LastPageText="末一页" Mode="NextPreviousFirstLast"
                NextPageText="下一页" PreviousPageText="上一页" />
            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <Columns>
                <asp:BoundField DataField="type" HeaderText="用户类型" SortExpression="type">
                    <ItemStyle Width="60px" HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="name" HeaderText="用户名" SortExpression="name">
                    <ItemStyle Width="100px" HorizontalAlign="Left" />
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="email" HeaderText="E-mail" SortExpression="email">
                    <HeaderStyle HorizontalAlign="Left" />
                    <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="tel" HeaderText="联系电话" SortExpression="tel">
                    <ItemStyle Width="80px" HorizontalAlign="Left" />
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:BoundField DataField="active" HeaderText="激活状态">
                    <ItemStyle Width="60px" HorizontalAlign="Left" />
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:HyperLinkField Text="详细" DataNavigateUrlFields="id" 
                            DataNavigateUrlFormatString="UserBaseInfo.aspx?id={0}" 
                    Target="_self">
                            <ItemStyle Width="60px" HorizontalAlign="Center" />
                                <HeaderStyle HorizontalAlign="Center" />
                          </asp:HyperLinkField >
                <asp:HyperLinkField DataNavigateUrlFields="id" 
                    DataNavigateUrlFormatString="PwdModify.aspx?id={0}" Text="重置密码">
                    <ItemStyle Width="60px" />
                </asp:HyperLinkField>
                <asp:CommandField ShowDeleteButton="True">
                    <ItemStyle HorizontalAlign="Center" Width="60px" />
                </asp:CommandField>
            </Columns>
            <RowStyle BackColor="#E3EAEB" />
            <EditRowStyle BackColor="#7C6F57" />
            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="False" ForeColor="#333333" />
            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Right" />
            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
        </div>
    </form>
</body>
</html>
